﻿@model IEnumerable<WeatheRx.Data.Applicant>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.ClientType)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.JobNum)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.LastName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.FirstName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.StreetNumber)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.StreetOrientation)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.StreetName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Suffix)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.AptLot)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.City)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.State)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Zip)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.AgencyCode)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.WardCode)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CountyCode)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Phone)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Mobile)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Fax)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Email)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SSN)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.NoSSN)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ApplicationDate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Birthday)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.AnnualIncome)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.OccupancyType)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PriorityPoints)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ClientCode)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IncomeQualification)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.EligibilityLetterSent)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CaseClosed)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.InitialInspectionAssignedDate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.InitialInspectionScheduleDate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.EligibilityDate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DEOFunding)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.InitialInspector)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.WarmAndHealthy)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DeferralDate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DeferralReason)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.EligibilityStatus)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Agency.AgencyNumber)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Job.JobNum)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ClientType)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.JobNum)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LastName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FirstName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StreetNumber)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StreetOrientation)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StreetName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Suffix)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AptLot)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.City)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.State)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Zip)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AgencyCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.WardCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CountyCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Phone)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Mobile)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Fax)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Email)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SSN)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NoSSN)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ApplicationDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Birthday)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AnnualIncome)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.OccupancyType)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PriorityPoints)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ClientCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IncomeQualification)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EligibilityLetterSent)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CaseClosed)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.InitialInspectionAssignedDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.InitialInspectionScheduleDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EligibilityDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DEOFunding)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.InitialInspector)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.WarmAndHealthy)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DeferralDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DeferralReason)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EligibilityStatus)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Agency.AgencyNumber)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Job.JobNum)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ApplicantId }) |
            @Html.ActionLink("Details", "Details", new { id=item.ApplicantId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ApplicantId })
        </td>
    </tr>
}

</table>
